<CFSET CLIENT.edtDateFrom="">
<CFSET CLIENT.edtDateTo="">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=2 WIDTH="100%">
	<CFSET sType = urlEncodedFormat(encrypt("3",client.ek))>
	<CFQUERY NAME="GetRecords" DATASOURCE="#client.company_dsn#">
		SELECT *
		FROM ECRGWORKSCHED
		WHERE WSCODE IN (#preserveSingleQuotes(quotedUserRecords)#)
		ORDER BY WSGROUP, WSDESCRIPTION
	</CFQUERY>
    <CFQUERY NAME="getPowerUser" DATASOURCE="#client.company_dsn#">
        SELECT Count(PERSONNELIDNO) AS COUNT
        FROM CINWSPOWERUSER 
        WHERE PERSONNELIDNO ='#client.chapa#'
    </CFQUERY>
	<CFSET compGrp = "">
	<CFLOOP QUERY="GetRecords">
		<CFIF #compGrp# NEQ #GetRecords.WSGROUP#>
			<TR><TD HEIGHT=5></TD></TR>
			<TR><TD>
				<CFMODULE TEMPLATE="#client.common_path#cfm_group.cfm" CAPTION="#GetRecords.WSGROUP#">
			</TD></TR>
		</CFIF>
		<CFOUTPUT>
			<CFSET sWSCODE= URLEncodedFormat(Encrypt(GetRecords.WSCODE,client.ek))>
			<TR><TD CLASS="regular11">
				   <img src="#client.icon_path#eform.gif">
					<A HREF="wsmain/index.cfm?id=#sWSCODE#" CLASS="regular11">#GetRecords.WSDESCRIPTION#</A>
			</TD></TR>
		</CFOUTPUT>
		<CFSET compGrp = GetRecords.WSGROUP>
	</CFLOOP>
	<TR><TD HEIGHT=5></TD></TR>
	<TR><TD>
		<CFMODULE TEMPLATE="#client.common_path#cfm_group.cfm" CAPTION="Schedule Viewing">
	</TD></TR>
	<CFOUTPUT>
	<CFSET sWSCODE= URLEncodedFormat(Encrypt("POWERUSER",client.ek))>
	<TR><TD CLASS="regular11">
		   <img src="#client.icon_path#eform.gif">
			<A HREF="wsmain/index.cfm?id=#sWSCODE#&recordview=" CLASS="regular11">View Records</A>
	</TD></TR>
	</CFOUTPUT>
    <TR><TD HEIGHT=5></TD></TR>
    <TR><TD>
		<CFMODULE TEMPLATE="#client.common_path#cfm_group.cfm" CAPTION="View Manning">
	</TD></TR>
    
	<CFOUTPUT>
	<TR><TD CLASS="regular11">
		   <img src="#client.icon_path#eform.gif">
			<A HREF="manning/index.cfm" CLASS="regular11">Manning Scheduler</A>
	</TD></TR>
    </CFOUTPUT>
</TABLE>

